import request from '@/utils/request'

// 查询教师列表
export function listCoursePlanTeacher(query) {
  return request({
    url: '/courseplan/teacher/list',
    method: 'get',
    params: query
  })
}

// 导入教师列表
export function sysUserToCoursePlanTeacher() {
  return request({
    url: '/courseplan/teacher/sysUserToCoursePlanTeacher',
    method: 'get'
  })
}

// 删除用户
export function deleteCoursePlanTeacherByIds(userId) {
  return request({
    url: '/courseplan/teacher/' + userId,
    method: 'delete'
  })
}

// 修改用户
export function updateCoursePlanTeacherById(data) {
  return request({
    url: '/courseplan/teacher',
    method: 'put',
    data: data
  })
}
